If you happen to be wandering around North Beach past your bedtime and need your caffeine fix, seek out these two cafes. They offer not only excellent espresso, but also a glimpse back at the days of the beatniks, when nothing was as crucial as a strong cup of coffee, a good smoke, and a stimulating environment.
Doing the North Beach thing is little more than hanging out in a sophisticated but relaxed atmosphere over a well-made cappuccino. You can do it at Caffè Greco, 423 Columbus Ave., between Green and Vallejo streets (tel. 415/397-6261), and grab a bite, too. The affordable cafe fare includes beer and wine as well as a good selection of coffees, focaccia sandwiches, and desserts (try the gelato or homemade tiramisu).
Caffè Trieste, 601 Vallejo St., at Grant Avenue (tel. 415/392-6739), is one of San Francisco's most beloved cafes -- very down-home Italian, with only espresso drinks and pastries at indoor and outdoor seating. Opera is always on the jukebox, unless it's Saturday afternoon, when the family and their friends literally break out in arias during an operatic performance from 2 to 5pm.